package com.mark.web.stars.entity.vo;

import com.mark.web.stars.entity.po.ProperNoun;
import lombok.Data;

import java.util.List;
import java.util.Map;

/**
 * @Description: 专有名词VO类
 * @Author: Mark
 * @CreateDate: 2020/5/23 18:49
 * @Copyright : 豆浆油条个人非正式工作室
 */
@Data
public class ProperNounVO {

    /**
     * 主键id
     */
    private Integer id;

    /**
     * 专有名词
     */
    private String content;

    /**
     * 装有名词的解析
     */
    private String description;

    /**
     * 查询的次数,默认为1
     */
    private Integer times;

    /**
     * 该名词所属的字典类型
     */
    private List<String> dictTypeList;

    public ProperNounVO(ProperNoun properNoun,List<String> dictNameList){
        this.id = properNoun.getId();
        this.content = properNoun.getContent();
        this.description = properNoun.getDescription();
        this.times = properNoun.getTimes();
        this.dictTypeList = dictNameList;
    }

}
